package com.service;

import com.pojoVO.CommentInfoVo;
import com.util.ServerResponse;

/**
 * Created by Administrator on 2020/4/14 0014.
 */
public interface CommentInfoVoService{
    //添加
    public ServerResponse save(CommentInfoVo t);
    //删除（其实是修改状态 status字段 1改成0）
    // 封装主键、status
    public ServerResponse modifyStatus(String id);
    //修改
    public ServerResponse modify(CommentInfoVo t);
    //根据主键查询
    public ServerResponse getById(String id);
    //查询所有
    public ServerResponse getAll();
    public ServerResponse getByGroupId(String groupId);
    public ServerResponse getByUserId(Integer userId);
    public ServerResponse getstarNumByGroupId(String groupId);
    public ServerResponse getByOrderNum(Long orderNum);
    public ServerResponse submitCommet(CommentInfoVo CommentInfoVo);
    public ServerResponse saveReply(CommentInfoVo CommentInfoVo);
    public ServerResponse findByParentId(String parentId,Integer page);
    public ServerResponse getByReplyUserId(Integer userId);

}
